package cn.school.sys.entity;


import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 学年
 */
@Data
@TableName("t_academic_year")
public class AcademicYear implements Serializable {
    private static final long serialVersionUID = 1481354371258539848L;

    private long id;
    private short acyeBeginYear; // 开始年份
    private short acyeEndYear; // 结束年份
    private short acyeSortNo; // 排序号
    private String remarks;
    private Date createTime;
    private Date modifyTime;

    @TableField(exist = false)
    private boolean isCurrent; // 是否当前学年

    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
